package cn.accp.carFactory.base;

/**
 * 车架抽象类
 * 
 * @author Jiangqs
 * 
 */
public abstract class Carframe {
	// 材料
	private String material;
	// 重量
	private double weight;
	// 生产商
	private String vendor;

	public String getMaterial() {
		return material;
	}

	public void setMaterial(String material) {
		this.material = material;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) {
		this.weight = weight;
	}

	public String getVendor() {
		return vendor;
	}

	public void setVendor(String vendor) {
		this.vendor = vendor;
	}

	public Carframe(String material, double weight, String vendor) {
		super();
		this.material = material;
		this.weight = weight;
		this.vendor = vendor;
	}

	@Override
	public String toString() {
		return this.material + "," + this.vendor + "," + this.weight + ",";
	}

}
